/*
 * @(#)LinkOutputImpl.java 1.2 03/12/19
 * 
 * Copyright 2004 Sun Microsystems, Inc. All rights reserved. SUN
 * PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
 */

package net.sf.odinms.exttools.doclet.writers;

import com.sun.tools.doclets.internal.toolkit.util.links.LinkOutput;

/**
 * Stores output of a link.
 * 
 * @author Jamie Ho
 * @since 1.5
 * 
 * @deprecated Legacy code from Standard Doclet.
 */
public class LinkOutputImpl implements LinkOutput {
	
	/**
	 * The output of the link.
	 */
	public StringBuffer output;
	
	/**
	 * Construct a new LinkOutputImpl.
	 */
	public LinkOutputImpl() {
		output = new StringBuffer();
	}
	
	/**
	 * {@inheritDoc}
	 */
	public void append(Object o) {
		output.append(o instanceof String
				? (String) o
				: ((LinkOutputImpl) o).toString());
	}
	
	/**
	 * {@inheritDoc}
	 */
	public String toString() {
		return output.toString();
	}
	
}
